# -*- coding:utf-8 -*-
__author__ = '作者'

from com.lpf.generated.thrift import ttypes

# 在python中这个类叫做Handler
class PersonServiceImpl:

    def getPersonByUsername(self, username):
        print "Got Client Param:" + username

        person = ttypes.Person()
        person.username = username
        person.age = 20
        person.married = False

        return person

    def savePerson(self, person):
        print "Get client param:"

        print person.username
        print person.age
        print person.married